package com.umakr.ax.app.web;

import java.util.Map;

import com.umakr.ax.common.service.UserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import com.umakr.ax.common.model.UserDetails;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import com.umakr.ax.core.base.AbstractController;

/**
 * <p>
 * 用户详情  前端控制器
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
@Controller
@RequestMapping("/api/web/userDetails")
public class UserDetailsWebController extends AbstractController {

	@Autowired
	UserDetailsService userDetailsService;

	/**
	 * 核验员列表
	 * 暂时查询所有用户信息
	 * @param modelMap
	 * @return
	 */
	@ApiOperation(value = "核验员列表")
	@GetMapping("/listWriterOff")
	public Object listWriterOff(ModelMap modelMap, String searchValue) {
		return setSuccessModelMap(modelMap,userDetailsService.listWriterOff(searchValue));
	}
}